<!doctype html>
<html class="no-js">
    <head>
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <meta name="csrf-token" content="{{ csrf_token() }}">
        <meta name="viewport"
              content="width=device-width,height=device-height,initial-scale=1.0,maximum-scale=1.0,user-scalable=no">
        <title>小马网-以信任促成交易</title>
        <link rel="stylesheet" type="text/css" href="../css/index.css"/>
        <link rel="stylesheet" type="text/css" href="../css/kiss.css"/>
        <link rel="stylesheet" type="text/css" href="../css/base.css">
        <link rel="stylesheet" type="text/css" href="../css/Apply.css" media="all">
        <link rel="shortcut icon" href="../img/icon/favicon.ico">
        <style type="text/css">
            .form {
                display: none
            }

            .form.on {
                display: block
            }

            #form-radio {
                margin: 15px 0 0 0
            }
        </style>
    </head>

    <body style="font-size: 14px;">
        <div id="page">
            @include('web.authentication.header')
            <div id="kiss_wrap">
                <div class="apply_flow"></div>
                <div class="preview_contain">
                    <div class="form_hd">免费提交初审</div>
                    <div class="kiss_form prebook_info">
                        <div class="kiss_fm_row clearfix ">
                            <label class="mt10">申请验证类型</label>
                            <div class="kiss_fm_area auth_type_logo_img" id="form-radio">
                                <input type="radio" value="guanwang" name="types" checked="checked"/>官网验证
                                <input type="radio" value="shiming" name="types"/>实名验证
                            </div>
                        </div>
                        <div id="form-box">
                            <div class="form on" id="guanwang">
                                <form action="" method="post" id="apply" novalidate="novalidate">
                                    {{ csrf_field() }}
                                    <div class="kiss_fm_row clearfix organizer_location">
                                        <label class="s_lb" for="site_domain"><b class="mt"></b>所在地</label>
                                        <div class="kiss_fm_area ">
                                            <select verify="required" tap="请选择主办方所在地" onclick="getCity();" class="fl"
                                                    id="province" name="organizer_province">
                                                <option value=0 >北京</option>
                                                <option value=1 >上海</option>
                                                <option value=2 >天津</option>
                                                <option value=3 >重庆</option>
                                                <option value=4 >河北</option>
                                                <option value=5 >山西</option>
                                                <option value=6 >内蒙古</option>
                                                <option value=7 >辽宁</option>
                                                <option value=8 >吉林</option>
                                                <option value=9 >黑龙江</option>
                                                <option value=10 >江苏</option>
                                                <option value=11 >浙江</option>
                                                <option value=12 >安徽</option>
                                                <option value=13 >福建</option>
                                                <option value=14 >江西</option>
                                                <option value=15 >山东</option>
                                                <option value=16 >河南</option>
                                                <option value=17 >湖北</option>
                                                <option value=18 >湖南</option>
                                                <option value=19 >广东</option>
                                                <option value=20 >广西</option>
                                                <option value=21 >海南</option>
                                                <option value=22 >四川</option>
                                                <option value=23 >贵州</option>
                                                <option value=24 >云南</option>
                                                <option value=25 >西藏</option>
                                                <option value=26 >陕西</option>
                                                <option value=27 >甘肃</option>
                                                <option value=28 >宁夏</option>
                                                <option value=29 >青海</option>
                                                <option value=30 >新疆</option>
                                                <option value=31 >香港</option>
                                                <option value=32 >澳门</option>
                                                <option value=33 >台湾</option>
                                            </select>
                                            <select verify="required" tap="请选择主办方所在地" class="fl" id="city"
                                                    name="organizer_city">
                                            </select>
                                            <i class="e_tip error_st"></i>
                                            <div class="kiss_fm_etip e_tip"></div>
                                        </div>
                                    </div>
                                    <div class="kiss_fm_row clearfix organizer_location website_type">
                                        <label class="s_lb" for="site_type"><b class="mt"></b>网站分类</label>
                                        <div class="kiss_fm_area ">
                                            <select verify="required" tap="请选择网站分类" onchange="getSite();" class="fl" id="site_type_first" name="get_site_type_first">
                                                <option value=0>音乐影视</option>
                                                <option value=1>休闲娱乐</option>
                                                <option value=2>游戏</option>
                                                <option value=3>网络服务应用</option>
                                                <option value=4>博客</option>
                                                <option value=5>计算机软件硬件</option>
                                                <option value=6>数码及手机</option>
                                                <option value=7>教学及考试</option>
                                                <option value=8>医疗保健</option>
                                                <option value=9>女性时尚</option>
                                                <option value=10>社交网络和在线社区</option>
                                                <option value=11>生活服务</option>
                                                <option value=12>房产家居</option>
                                                <option value=13>汽车</option>
                                                <option value=14>交通旅游</option>
                                                <option value=15>体育运动</option>
                                                <option value=16>投资金融</option>
                                                <option value=17>垂直行业</option>
                                                <option value=18>新闻媒体</option>
                                                <option value=19>人文艺术</option>
                                                <option value=20>小说</option>
                                                <option value=21>人才招聘</option>
                                                <option value=22>网络购物</option>
                                                <option value=23>网站导航</option>
                                                <option value=24>登录页面</option>
                                                <option value=25>其他</option>
                                            </select>
                                            <select verify="required" tap="请选择网站分类" class="fl" id="site_type_second"
                                                    name="get_site_type_second">
                                            </select>
                                            <i class="e_tip error_st"></i>
                                            <div class="kiss_fm_etip e_tip"></div>
                                        </div>
                                    </div>
                                    <div class="kiss_fm_row clearfix website_address ">
                                        <label class="s_lb" for="verify_url"><b class="mt"></b>申请验证网站地址</label>
                                        <div class="kiss_fm_area ">
                                            <input verify="required|www" tap="请填写网站地址" id="id_verify_url" name="verify_url"
                                                   class="valid"
                                                   value="" autocomplete="off" spellcheck="false" type="text">
                                            <i class="e_tip error_st"></i>
                                            <div class="kiss_fm_etip e_tip"></div>
                                        </div>
                                    </div>
                                    <div class="kiss_fm_row clearfix">
                                        <label class="s_lb"><b class="mt"></b>申请验证年限</label>
                                        <div class="kiss_fm_area prebook_years">
                                            <select verify="required" class="fl" id="verify_year" name="verify_year">
                                                @foreach ($order_status as $val)
                                                @if($val['type'] == 0)
                                                <option value="{{$val['id']}}" >{{$val['year']}}年(赠{{$val['gift_time']}}年)</option>
                                                @endif
                                                @endforeach
                                            </select>
                                        </div>
                                    </div>
                                    <div class="kiss_fm_row clearfix">
                                        <label class=" " for="id_applicant_name"><b class="mt"></b>联系人姓名</label>
                                        <div class="kiss_fm_area ">
                                            <input verify="required" tap="请填写联系人姓名" autocomplete="off" class=""
                                                   id="id_applicant_name"
                                                   maxlength="50" name="applicant_name" spellcheck="false" value="" type="text">
                                            <i class="e_tip error_st"></i>
                                            <div class="kiss_fm_etip e_tip"></div>
                                        </div>
                                    </div>
                                    <div class="kiss_fm_row clearfix">
                                        <label class=" " for="id_applicant_email"><b class="mt"></b>联系人邮箱</label>
                                        <div class="kiss_fm_area ">
                                            <input verify="required|email" tap="请填写联系人邮箱" autocomplete="off" class=""
                                                   id="id_applicant_email"
                                                   maxlength="32" name="applicant_email" spellcheck="false" value=""
                                                   type="text">
                                            <i class="e_tip error_st"></i>
                                            <div class="kiss_fm_etip e_tip"></div>
                                        </div>
                                    </div>
                                    <div class="kiss_fm_row clearfix">
                                        <label class=" " for="id_applicant_mobile"><b class="mt"></b>联系人手机号</label>
                                        <div class="kiss_fm_area ">
                                            <input verify="required|phone" tap="请填写联系人手机号" autocomplete="off" class=""
                                                   id="id_applicant_mobile"
                                                   maxlength="20" name="applicant_mobile" spellcheck="false" value=""
                                                   type="text">
                                            <i class="e_tip error_st"></i>
                                            <div class="kiss_fm_etip e_tip"></div>
                                        </div>
                                    </div>
                                    <div class="field-tip">将通过联系人手机反馈验证结果。</div>
                                    <div class="fm_group"></div>
                                    <div class="fm_summ">
                                        <div class="file_upload_summ mb10">
                                            <div class="kiss_fm_row">
                                                <input id="id_license" checked="checked" name="license" type="checkbox">
                                                我同意 <a target="_blank" class="-sv-no-popup" href="">《验证申请条件》</a>
                                            </div>
                                        </div>
                                        <p>初审确认网站能够通过验证后，再支付费用</p>
                                        <div class="kiss_fm_sb clearfix mt10">
                                            <a class="kiss_btn kiss_sbtn_red part-btn" href="javascript:;" id="apply_btn">马上免费提交初审</a>
                                        </div>
                                    </div>
                                    <input type="hidden" name="types" class="types" value="0"/>
                                </form>
                            </div>
                            <div class="form" id="shiming">
                                <form method="post" id="apply1" novalidate="novalidate">
                                    <input type="hidden" name="types" class="types" value="1"/>
                                    {{ csrf_field() }}
                                    <div class="kiss_fm_row clearfix organizer_location">
                                        <label class="s_lb" for="site_domain"><b class="mt"></b>所在地</label>
                                        <div class="kiss_fm_area ">
                                            <select verify="required" tap="请选择主办方所在地" onchange="getCity1();" class="fl"
                                                    id="organizer_province1" name="organizer_province">
                                                <option value=0>北京</option>
                                                <option value=1>上海</option>
                                                <option value=2>天津</option>
                                                <option value=3>重庆</option>
                                                <option value=4>河北</option>
                                                <option value=5>山西</option>
                                                <option value=6>内蒙古</option>
                                                <option value=7>辽宁</option>
                                                <option value=8>吉林</option>
                                                <option value=9>黑龙江</option>
                                                <option value=10>江苏</option>
                                                <option value=11>浙江</option>
                                                <option value=12>安徽</option>
                                                <option value=13>福建</option>
                                                <option value=14>江西</option>
                                                <option value=15>山东</option>
                                                <option value=16>河南</option>
                                                <option value=17>湖北</option>
                                                <option value=18>湖南</option>
                                                <option value=19>广东</option>
                                                <option value=20>广西</option>
                                                <option value=21>海南</option>
                                                <option value=22>四川</option>
                                                <option value=23>贵州</option>
                                                <option value=24>云南</option>
                                                <option value=25>西藏</option>
                                                <option value=26>陕西</option>
                                                <option value=27>甘肃</option>
                                                <option value=28>宁夏</option>
                                                <option value=29>青海</option>
                                                <option value=30>新疆</option>
                                                <option value=31>香港</option>
                                                <option value=32>澳门</option>
                                                <option value=33>台湾</option>
                                            </select>
                                            <select verify="required" tap="请选择主办方所在地" class="fl" id="organizer_city1"
                                                    name="organizer_city">
                                            </select>
                                            <i class="e_tip error_st"></i>
                                            <div class="kiss_fm_etip e_tip"></div>
                                        </div>
                                    </div>
                                    <div class="kiss_fm_row clearfix organizer_location site_cate">
                                        <label class="s_lb" for="site_type"><b class="mt"></b>企业类型</label>
                                        <div class="kiss_fm_area ">
                                            <select verify="required" tap="请选择网站分类" class="fl" id="site_type_first_11"
                                                    name="company_type">
                                                <option value="" selected="selected">---选择---</option>
                                                <option value="1">内资企业</option>
                                                <option value="2">其他</option>
                                            </select>
                                            <i class="e_tip error_st"></i>
                                            <div class="kiss_fm_etip e_tip"></div>
                                        </div>
                                    </div>
                                    <div class="kiss_fm_row clearfix site_name">
                                        <label class=" " for="id_applicant_name"><b class="mt"></b>企业全称</label>
                                        <div class="kiss_fm_area ">
                                            <input verify="required" tap="请填写企业名称" autocomplete="off" class=""
                                                   id="id_applicant_name1"
                                                   maxlength="50" name="company_name" spellcheck="false" value="" type="text">
                                            <i class="e_tip error_st"></i>
                                            <div class="kiss_fm_etip e_tip"></div>
                                        </div>
                                    </div>
                                    <div class="kiss_fm_row clearfix">
                                        <label class="s_lb"><b class="mt"></b>申请验证年限</label>
                                        <div class="kiss_fm_area prebook_years">
                                            <select verify="required" class="fl" id="verify_year1" name="verify_year">
                                                @foreach ($order_status as $val)
                                                @if($val['type'] == 1)
                                                <option value="{{$val['id']}}" >{{$val['year']}}年(赠{{$val['gift_time']}}年)</option>
                                                @endif
                                                @endforeach
                                            </select>
                                        </div>
                                    </div>
                                    <div class="kiss_fm_row clearfix">
                                        <label class=" " for="id_applicant_name"><b class="mt"></b>联系人姓名</label>
                                        <div class="kiss_fm_area ">
                                            <input verify="required" tap="请填写联系人姓名" autocomplete="off" class=""
                                                   id="id_applicant_name1"
                                                   maxlength="50" name="applicant_name" spellcheck="false" value="" type="text">
                                            <i class="e_tip error_st"></i>
                                            <div class="kiss_fm_etip e_tip"></div>
                                        </div>
                                    </div>
                                    <div class="kiss_fm_row clearfix">
                                        <label class=" " for="id_applicant_email"><b class="mt"></b>联系人邮箱</label>
                                        <div class="kiss_fm_area ">
                                            <input verify="required|email" tap="请填写联系人邮箱" autocomplete="off" class=""
                                                   id="id_applicant_email1"
                                                   maxlength="32" name="applicant_email" spellcheck="false" value=""
                                                   type="text">
                                            <i class="e_tip error_st"></i>
                                            <div class="kiss_fm_etip e_tip"></div>
                                        </div>
                                    </div>
                                    <div class="kiss_fm_row clearfix">
                                        <label class=" " for="id_applicant_mobile"><b class="mt"></b>联系人手机号</label>
                                        <div class="kiss_fm_area ">
                                            <input verify="required|phone" tap="请填写联系人手机号" autocomplete="off" class=""
                                                   id="id_applicant_mobile1"
                                                   maxlength="20" name="applicant_mobile" spellcheck="false" value=""
                                                   type="text">
                                            <i class="e_tip error_st"></i>
                                            <div class="kiss_fm_etip e_tip"></div>
                                        </div>
                                    </div>
                                    <div class="field-tip">将通过联系人手机反馈验证结果。</div>
                                    <div class="fm_group"></div>
                                    <div class="fm_summ">
                                        <div class="file_upload_summ mb10">
                                            <div class="kiss_fm_row">
                                                <input id="id_license1" checked="checked" name="license" type="checkbox">
                                                我同意 <a target="_blank" class="-sv-no-popup" href="">《验证申请条件》</a>
                                            </div>
                                        </div>
                                        <p>初审确认网站能够通过验证后，再支付费用</p>
                                        <div class="kiss_fm_sb clearfix mt10">
                                            <a class="kiss_btn kiss_sbtn_red part-btn" href="javascript:;" id="apply_btn1">马上免费提交初审</a>
                                        </div>
                                    </div>
                                </form>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <!-- 底部 -->
        @include('web.authentication.footer')
        <!-- 客服 -->
        @include('web.authentication.kefu')
    </body>
</html>
<script src="../js/jquery-1.11.3.min.js" type="text/javascript" charset="utf-8"></script>
<script src="../js/goTop.js" type="text/javascript" charset="utf-8"></script>
<script src="../js/sheng-shi.js" type="text/javascript" charset="utf-8"></script>
<script src="../js/www-class.js" type="text/javascript" charset="utf-8"></script>
<script src="../js/verify.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
    var POST_URL = "{{Route('gw')}}";
    var POST_URL1 = "{{Route('qiye')}}";
    var POST_SUCCESS = "{{Route('success')}}";
    $(function () {
        //获取表单所有input
        $(".error_st").css({"display": "none"})
        $(".kiss_fm_etip").css({"display": "none"})
        var fields = $("#apply :input");

        $("#apply_btn").on("click", function () {
            var verify = regular.charge(fields);
            if (verify) {
                $.post(POST_URL, $('#apply').serialize(), function (data) {
                    if (data == 1) {
                        alert("提交成功");
                        location.href="{{route('success')}}"
                    } else {
                        alert("提交失败,请重试！！！");
                    }
                });
            }
        });
        // 注册事件
        $(fields).on("blur", function () {
            regular.charge(fields);
        });

        var fields1 = $("#apply1 :input");
        $("#apply_btn1").on("click", function () {
            var xx = regular.charge(fields1);
            if (xx) {
                $.post(POST_URL1, $('#apply1').serialize(), function (data) {
                    if (data == 1) {
                        alert("提交成功");
                        location.href="{{route('success')}}"
                    } else {
                        alert("提交失败,请重试！！！");
                    }
                });
            }
        });
        // 注册事件
        $(fields1).on("blur", function () {
            regular.charge(fields);
        });
        $("#form-radio input").on("click", function () {
            var _this = $(this);
            $("#form-box .form").removeClass("on");
            $("#" + _this.val()).addClass("on")
        })
    });
</script>
